<template>
    <div class="goods-item-box">
        <div class="goods-image">
            <img :src="$uploadUrl(goods.picture_main)"  />
        </div>
        <div class="goods-title">
            {{goods.title}}
        </div>
        <div class="ctrl-box">
           
            <label class="input-btn btn"  title="信息">
                <span><i class="fa fa-info-circle"></i></span> 
            </label>
            <label class="input-btn btn" title="删除" @click="$emit('del',index)" >
                <span><i class="fa fa-close"></i></span> 
            </label>
        </div>
    </div>
</template>

<script>
export default{
    emits:['del'],
    props:{
        goods:{
            type:Object,
            default(){
                return {};
            }
        },
        index:{
            type:Number,
            default:0
        }
    },
}
</script>